package com.tk.exam.service;


import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageInfo;
import com.tk.exam.domain.TkQuestions;
import com.tk.exam.vo.question.*;
import com.tk.exam.vo.question.req.*;
import com.tk.exam.vo.question.resp.TkAnswerVo;
import com.tk.exam.vo.question.resp.TkQuestionTotalVo;

import java.util.List;

public interface TkQuestionService {
    PageInfo<TkQuestionVo> searchList(String category, String type);
    //校验入参
    boolean validate4c(TkQuestion4CRequestVo tkQuestion4CRequestVo);
    boolean validatePd(TkQuestionPDRequestVo tkQuestionPDRequestVo);
    boolean validateDx(TkQuestionDXRequestVo tkQuestionDXRequestVo);
    boolean validateJs(TkQuestionJSRequestVo tkQuestionJSRequestVo);
    boolean validateType(String type);
    //入库
    TkQuestions save(TkQuestionRequestVo vo);
    //修改
    TkQuestions edit(JSONObject param,String type);
    //查看
    TkQuestionTotalVo findById(String id);
    //查看
    TkAnswerVo findAnswerById(String id);
    //删除
    void deleteQues(List<String> ids);

     boolean checkQues(List<Integer> ids);

}
